Semantics for a Real-Time Object-Oriented Programming Language
ثبت نشده
چکیده
Writer def = new Writer :getid(i):id Writer (i):(ClassDec 0 Writer j run:(LocY j (t stat) :idle:Body 0 Writer;i)) n LY Body 0 Writer;i def = calli;start(j):(LocX jwriteX(j):run:reti;start(true): (t stat) :idle: run:(hcallj;put(^ 1):retj;put(x):reply(x):0 ; abort:0i3 j hreply(y):writeY (y): (t stat) :idle: 1 1 1 1 1 1Body 0 Writer;i ; reply(y):0 + abort:0 j write Y (error): (t stat) :idle: 1 1 1 1 1 1 Body 0 Writer;i i 3) n freply;abortg) n L X [ [classReader var Y 1 1 1endc] ] T ClassDec 0 Reader where ClassDec 0 Reader def = newReader:getid(i):idReader(i):(ClassDec 0 Reader j run:(LocY j (t stat) :idle:Body 0 Reader;i)) n LY Body 0 Reader;i def = calli;start(j):(LocX jwriteX(j):run:reti;start(true): (t stat) :idle: run:(hcallj;get(^ 0):retj;get(x):reply(x):0 ; abort:0i3 j hreply(y):writeY (y): (t stat) :idle: 1 1 1 1 1 1Body 0 Reader;i ; reply(y):0 + abort:0 j writeY (error): (t stat) :idle: 1 1 1 1 1 1 Body 0 Reader;i i3) n freply;abortg) n LX 5 run:new Buer :id Buer (i): (t stat) :idle: run:new Writer :id Writer (j): (t stat) :idle: run:new Reader :id Reader (k): (t stat) :idle: A A def = run:(hcallj;start(i):retj;start(x):reply(x):0 ; abort:0i5 j hreply(y): (t stat) :idle:B ; reply(y):0 + abort:0 j (t stat) :idle:Bi5) n freply;abortg B def = run:(hcall k;start (i):ret k;start (x):reply(x):0 ; abort:0i5 j hreply(y): (t stat) :idle:0 ; reply(y):0 + abort:0 j (t stat) :idle:0i5) n freply;abortg The above proposition shows that the timed observation equivalence is preserved by all operators that are used to combine RtCCS expressions translated from R T 's class declarations, statements, and expressions. Therefore, we guarantee that the above simplied expressions are substitutable for their own original expressions. The entire program can be constructed by a parallel composition of the simplied expressions as follow: Prog T Prog 0 where Prog 0 def = (ClassDec 0 Buer jClassDec 0 Writer j ClassDec 0 Reader jObjId 0 j MachineN jInitial 0) By expanding the above simplied expressions 9 , we can analyze both the behavioral properties of the en-9 We omit the expansion and the detail analysis for lack of space. tire program and its temporal properties through the theoretical framework of RtCCS. Particularly, the upper bound of available processors can be specied as N in Machine N and thus we can predict the execution of programs with a given number of processors. From the above expression we know that, for example , let …
منابع مشابه
Declarative Semantics in Object-Oriented Software Development - A Taxonomy and Survey
One of the modern paradigms to develop an application is object oriented analysis and design. In this paradigm, there are several objects and each object plays some specific roles in applications. In an application, we must distinguish between procedural semantics and declarative semantics for their implementation in a specific programming language. For the procedural semantics, we can write a ...
متن کاملModeling and Evaluation of Stochastic Discrete-Event Systems with RayLang Formalism
In recent years, formal methods have been used as an important tool for performance evaluation and verification of a wide range of systems. In the view points of engineers and practitioners, however, there are still some major difficulties in using formal methods. In this paper, we introduce a new formal modeling language to fill the gaps between object-oriented programming languages (OOPLs) us...
متن کاملModeling and Evaluation of Stochastic Discrete-Event Systems with RayLang Formalism
In recent years, formal methods have been used as an important tool for performance evaluation and verification of a wide range of systems. In the view points of engineers and practitioners, however, there are still some major difficulties in using formal methods. In this paper, we introduce a new formal modeling language to fill the gaps between object-oriented programming languages (OOPLs) us...
متن کاملSemantics for a Real-Time Object-Oriented Programming Language
This paper presents a framework to define a semantics for a real-time object-orientation programming language and to verify programs written in the language. The semantics is defined as the collection of translation rules that map the syntactic constructions of the language into expressions in a process calculus extended with the notion of time. By using the expressive capabilities of the calcu...
متن کاملReal-time Action Logic and Applications
This paper presents work performed in the EPSRC \Object-oriented Speciication of Reactive and Real-time Systems" project. It aims to extend the Object Calculus of Fiadeiro and Maibaum to cover durative actions, real-time constraints and hybrid systems. We deene a core logic, termed \Real-time action logic" (RAL) which can provide an axiomatic semantics and reasoning framework for concurrent, re...
متن کاملUsing Object-z to Specify Object-oriented Programming Languages Using Object-z to Specify Object-oriented Programming Languages
In this paper, we present a case study for using formal object-oriented speciication languages, such as Object-Z, to specify the semantics of object-oriented programming languages. The key idea in this case study is to model language constructs, such as expressions, statements, methods and classes, as objects and to specify the semantics of each language construct using an Object-Z class. This ...
متن کامل